home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
qbprog.EXE
/
OPSIYON.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-10-11
|
687b
|
29 lines
'Bu program Dos komut satìrìndan verilen parametreleri bulur
DECLARE SUB Parametreler (Adet, Parametre$(), EnFazla)
DIM Parametre$(15)
CALL Parametreler(Adet, Parametre$(), 15)
CLS
FOR I = 1 TO Adet
PRINT STR$(I); ".parametre= "; Parametre$(I)
NEXT
SUB Parametreler (Adet, Parametre$(), EnFazla) STATIC
Al = 1
FOR I = 1 TO LEN(COMMAND$)
B$ = MID$(COMMAND$, I, 1)
IF (B$ <> " " AND B$ <> CHR$(9)) THEN
IF Al THEN
IF Adet = EnFazla THEN EXIT FOR
Adet = Adet + 1
Al = 0
END IF
Parametre$(Adet) = Parametre$(Adet) + B$
ELSE
Al = 1
END IF
NEXT I
END SUB